var express = require('express');
const sheet = require("../controller/sheet");
const auth = require('../middleware/auth')
const router = express.Router();

// 创建表格
router.post("/createSheet", auth, sheet.createSheet);
// 查询表格
router.post("/getSheet", sheet.getSheet);
// 修改表格
router.post("/updateSheet", sheet.getUpdateSheet);
// 删除用户表格权限
router.post("/delSheetUser", auth, sheet.delSheetUser);
// 新增用户表格权限
router.post("/addSheetUser", auth, sheet.addSheetUser);
// 收藏表格
router.post("/addFavorites", auth, sheet.addFavorites);
// 取消收藏表格
router.post("/delFavorites", auth, sheet.delFavorites);
module.exports = router;
